package com.dgut.edu.cn.design.mode.strategy.control;

import com.dgut.edu.cn.design.mode.strategy.StrategyAnnotation;
import com.dgut.edu.cn.design.mode.strategy.StrategyType;
import com.dgut.edu.cn.design.mode.strategy.compare.PriceCompareStrategy;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: hongbin.zheng
 * @create: 2023-07-17 16:55
 **/
@Service
@StrategyAnnotation(strategyType = {StrategyType.priceCompare, StrategyType.priceControl}, dataType = "commonStrategy")
public class PriceCompareAndControlStrategy implements PriceCompareStrategy, PriceControlStrategy {
	@Override
	public String doPriceCompare() {
		System.out.println("-------common price compare start---------------");
		System.out.println("-------common price compare end---------------");
		return "common price compare end";
	}

	@Override
	public String doPriceControl() {
		System.out.println("-------common price control start---------------");
		System.out.println("-------common price control end---------------");
		return "common price control end";
	}
}
